bitmaps/bitops: Clarify tests for small constant size.
authorTim Deegan <tim@xen.org>
Thu, 28 Nov 2013 15:40:48 +0000 (15:40 +0000)
committerTim Deegan <tim@xen.org>
Thu, 6 Mar 2014 10:13:12 +0000 (10:13 +0000)
commitbd1913d8734686cb869778e03273cc8133973aff
tree323282713131817c0253e7ab4b7fd859629dc525
parentc66713c93c00d0e6f4b9904c3363ba5a4a45a7d3
bitmaps/bitops: Clarify tests for small constant size.

No semantic changes, just makes the control flow a bit clearer.

I was looking at this bcause the (-!__builtin_constant_p(x) | x__)
formula is too clever for Coverity, but in fact it always takes me a
minute or two to understand it too. :)

Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/bitops.h
xen/include/xen/bitmap.h